package com.ppgames.gm.gmsystem;

import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

@Component
public class DemoRunnable implements Runnable {

    @Override
    public void run() {

        for (int i = 0; i < 5; i++) {
            try {
                TimeUnit.SECONDS.sleep(5);
                System.out.println("DemoRunnable: Hello ***********");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
